FROM centos:centos7 As First
MAINTAINER c17 c426117@163.com

#设置镜像源
RUN cd /etc/yum.repos.d/
RUN mkdir repo_bak
# RUN mv *.repo repo_bak/
COPY *.repo /etc/yum.repos.d/

RUN yum clean all
RUN yum makecache
RUN yum list | grep epel-release


#tafcpp依赖
RUN yum install -y gcc gcc-c++ make libtool git wget openssl-devel sudo tcl

#创建taf用户
RUN useradd taf -u 1000

RUN mkdir -p /usr/local/taf/
RUN mkdir -p /home/tafjce/
RUN mkdir -p /wp/

#　第二阶段
FROM scratch
COPY --from=First / /

WORKDIR /wp/
